package com.cuit.riskassessment.action.common;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cuit.riskassessment.service.common.ModuleService;


@Controller
@RequestMapping(value="module")
public class ModuleAction{
	
	@Resource(name = "ModuleServiceObject")
	ModuleService service;

	@RequestMapping(value="/modules")
	public @ResponseBody Object getModules(@RequestParam(value="id") String id){
		
		return service.getModuleList(id) ;
		
	}
	
}
